{extend name="public:_base" /}

{block name="css"}
{CSS href="__STATIC__/w/admin_base.css" /}
{CSS href="__STATIC__/w/laydate.css" /}
{CSS href="__STATIC__/w/layui.css" /}
{CSS href="__STATIC__/w/divtable.css" /}
{/block}

{block name="js"}
{include file="public/_validform"}
{js href='__STATIC__/w/jquery1110min.js' /}
{js href='__STATIC__/w/layui.js' /}
{/block}

{block name="main"}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会话列表 <a
        class="btn radius btn-success radius r" style="line-height:1.6em;margin-top:3px"
        href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>

<div class="layui-form layui-form-cont" style="padding-top: 80px;">

    <div class="layui-form-title" style="margin-bottom: 25px;">
        信息列表
    </div>

    <form action="{:url(\''.\\think\\Request::instance()->controller().'/save')}" method="post" class="form form-horizontal" id="form">

        <div class="read-cont">
            <ul class="content-reply-box mg10">
                {volist name="list" id="vo"}
                {eq name="vo.who" value="1"}
                <li class="even">
                    <a class="user" href="#">
                        <img class="img-responsive avatar_" src="images/avatar-1.png" alt="">
                        <span class="user-name">[公众号]</span>
                    </a>

                    <div class="reply-content-box">
                        <span class="reply-time">{$vo.create_time}</span>
                        <div class="reply-content pr">
                            <span class="arrow">&nbsp;</span>
                            {$vo.center}
                        </div>
                    </div>
                </li>
                {else/}
                <li class="odd">
                    <a class="user" href="#">
                        <img alt="" class="img-responsive avatar_" src="{$data.headimgurl}" height="60" width="60">
                        <!--<span class="user-name">用户名</span>-->
                    </a>

                    <div class="reply-content-box">
                        <span class="reply-time">{$vo.create_time}</span>
                        <div class="reply-content pr">
                            <span class="arrow">&nbsp;</span>
                            {switch name="$vo.mtype" }
                            {case value="text" }{$vo.center}{/case}
                            {case value="image"}<a href="{$vo.center}" target="_blank"><img src="{$vo.center}" width="169" height="169"></a> {/case}
                            {default /}默认情况
                            {/switch}
                        </div>
                    </div>
                </li>
                {/eq}
                {/volist}
            </ul>
        </div>

        <div class="layui-form-title">
            回复信息
        </div>

        <div class="read-tarea">
            <textarea name="center" class="textarea"></textarea>
        </div>

        <div class="read-btn">
            <input name="openid" value="{$openid}" type="hidden"/>
            <button type="submit" class="layui-btn">立即提交</button>
            <button type="button" class="layui-btn radius layui-btn-primary" onClick="window.history.back();">取消</button>
            <button type="button" class="layui-btn radius layui-btn-primary" onClick="window.history.back();">返回上一页</button>
        </div>

    </form>
</div>
{/block}
